# Contributor: Milan P. Stanić <mps@arvanta.net>
# Maintainer: Milan P. Stanić <mps@arvanta.net>
pkgname=quota-tools
pkgver=4.05
pkgrel=0
pkgdesc="linux disk quota system tools"
url="https://sourceforge.net/projects/linuxquota/"
arch="all"
license="GPL-2.0-or-later"
makedepends="e2fsprogs-dev openldap-dev libnl3-dev musl-libintl libtirpc-dev
	linux-headers"

subpackages="$pkgname-doc"
source="https://downloads.sourceforge.net/sourceforge/linuxquota/quota-$pkgver.tar.gz"
builddir="$srcdir/"quota-$pkgver

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var \
		--disable-libwrap \
		--disable-rpc \
		--disable-nls

	make
}

check() {
	make check
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="a13ca93fb6fad032cb032874dda2f5d792e619b41e89b481e6aaa4f06ac5774e2728b09dd625addfbe22efccb1d85892b093736084c72f75675a60df168b92f2  quota-4.05.tar.gz"
